import glob
import os
import sys

dirname = r'D:\python_workspace\Freedom\venv\Lib\site-packages\setuptools' if len(sys.argv) == 1 else sys.argv[1]

allsizes = []

allpy = glob.glob(dirname + os.sep + '*.py')

for filename in allpy:
    filesize = os.path.getsize(filename)
    allsizes.append((filesize, filename))

allsizes.sort()
print(allsizes[:2])
print(allsizes[-2:])
